import requests
class IhrmLongintoken:
    @classmethod
    def Ihrmtoken(cls):
        resp = requests.post(url="http://ihrm-test.itheima.net/api/sys/login",
                             json={'mobile': "13800000002", 'password': "123456"})
        return resp.json().get("data")

if __name__ == '__main__':
    print(IhrmLongintoken.Ihrmtoken())

